package com.clk.services.impl;

import com.clk.dao.HyMapper;
import com.clk.pojo.Hy;
import com.clk.services.HyServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("hyServices")
public class HyServiceslmpl implements HyServices {
    @Autowired
    private HyMapper hyMapper;

    public List<Hy> getHyAllByPage(Integer pageIndex, Integer pageSize) {
        return hyMapper.getHyAllByPage((pageIndex-1)*pageSize,pageSize);
    }

    public Integer getCount() {
        return hyMapper.getCount();
    }
}
